package com.example.springboottestgit.service;

import com.alibaba.fastjson.JSONObject;
import com.example.springboottestgit.bean.GpCode;
import com.example.springboottestgit.dao.GpCodeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author: ZZZ
 * @time: 2023/9/17 23:47
 */
@Service
public class TestService {

    @Autowired
    private GpCodeMapper dao;


    public Object query(Integer id) {
        GpCode gp1 = dao.queryById(id);
        System.out.println(JSONObject.toJSONString(gp1));

        GpCode gp2 = dao.selectById(id);
        System.out.println(JSONObject.toJSONString(gp2));

        return gp1;

    }

}
